package com.dataseek.iot.toolikit.common.util;

import org.springframework.security.crypto.bcrypt.BCryptPasswordEncoder;

/**
 * @discription:
 * @author: Freya.Yan
 * @date: 2022/3/14
 */
public class EncodeUtil {

    public static String passwordEncoder(String pw){

            BCryptPasswordEncoder passwordEncoder = new BCryptPasswordEncoder();
            String encode = passwordEncoder.encode(pw);
            return encode;


    }


}
